package cn.com.jinhao.provider.business.mapper;


import cn.com.jinhao.hotline.commons.base.BaseMapper;
import cn.com.jinhao.provider.business.entity.FlowCount;
import cn.com.jinhao.provider.business.entity.FlowInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * HotLine
 * <p>Description: 流程状态信息Mapper </p>
 *
 * @author ShaneMew
 * @version 1.0
 * @date 2019/11/15
 * @since 2019-11-15
 */
@Repository
public interface FlowInfoMapper extends BaseMapper<FlowInfo> {
    /**
     * 流程列表
     *
     * @param deptCode   部门编码
     * @param statusCode 状态编码
     * @return HashMap
     */
    List<FlowInfo> queryInfoByDeptCodeAndSatusCode(@Param("deptCode") String deptCode, @Param("statusCode") String statusCode);

    /**
     * 流程概览
     *
     * @param deptCode 部门编码
     * @return HashMap
     */
    List<FlowCount> queryInfoCountByDeptCode(@Param("deptCode") String deptCode);

    /**
     * 已受理的工单数量
     *
     * @param deptCode 部门编码
     * @return int
     */
    int selectCountByDeptCode(@Param("deptCode") String deptCode);
}
